package com.yangtao.prototype.system.user.web;

import com.yangtao.framework.common.Option;
import com.yangtao.framework.web.struts2.BaseModel;
import com.yangtao.prototype.system.domain.SysUser;

import java.util.List;

public class UserModel extends BaseModel {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 用户对象
	 */
	private SysUser targetUser = new SysUser();

	/**
	 * 用户的角色
	 */
	private String userRoles;

	/**
	 * 用户的未分配角色
	 */
	private List<Option> unDistributeRoles;

	/**
	 * 用户的已分配角色
	 */
	private List<Option> distributeRoles;

	/**
	 * 用户可分配的组织机构
	 */
	private List<Option> availableOrganize;

	public List<Option> getAvailableOrganize() {
		return availableOrganize;
	}

	public void setAvailableOrganize(List<Option> availableOrganize) {
		this.availableOrganize = availableOrganize;
	}

	public List<Option> getUnDistributeRoles() {
		return unDistributeRoles;
	}

	public void setUnDistributeRoles(List<Option> unDistributeRoles) {
		this.unDistributeRoles = unDistributeRoles;
	}

	public List<Option> getDistributeRoles() {
		return distributeRoles;
	}

	public void setDistributeRoles(List<Option> distributeRoles) {
		this.distributeRoles = distributeRoles;
	}

	public String getUserRoles() {
		return userRoles;
	}

	public void setUserRoles(String userRoles) {
		this.userRoles = userRoles;
	}

	public SysUser getTargetUser() {
		return targetUser;
	}

	/**
	 * 设置用户信息
	 *
	 * @param targetUser
	 */
	public void setTargetUser(SysUser targetUser) {
		this.targetUser = targetUser;
	}

	public UserModel() {
		super();
	}
}
